package com.example.wisdomclassroomapi.facade.controller.common;

import lombok.extern.slf4j.Slf4j;
import org.springframework.security.core.context.SecurityContextHolder;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制器基类
 */
@RestController
@Slf4j
public class BaseController {

    public String getLoginUserId() {
        return SecurityContextHolder.getContext().getAuthentication().getName();
    }

}
